import loader from '@/utils/loader'

export function UploadVideoFile(query) {
  return loader.postFile(Object.assign({}, query))
}

export function UploadVideoInfo(query) {
  return loader.post('/VideoServer/UploadVideoInfo',
    Object.assign({}, query)
  )
}

export function CreateSdkList(query) {
  return loader.post('/VideoServer/CreateSdk',
    Object.assign({}, query)
  )
}

export function CreateVersion(query) {
  return loader.post('/VideoServer/CreateVersion',
    Object.assign({}, query)
  )
}

export function fetchSdkList(query) {
  return loader.get(
    '/VideoServer/GetSdkList',
    Object.assign({}, query)
  )
}

export function fetchSdkInfo(query) {
  return loader.get(
    '/VideoServer/GetSdkInfo',
    Object.assign({}, query)
  )
}

export function fetchVideoList(query) {
  return loader.get(
    '/VideoServer/GetVideoList',
    Object.assign({}, query)
  )
}

export function fetchVideoClassList(query) {
  return loader.get(
    '/VideoServer/GetVideoClassList',
    Object.assign({}, query)
  )
}

export function fetchVersionList(query) {
  return loader.get(
    '/VideoServer/GetVersionList',
    Object.assign({}, query)
  )
}

export function fetchForecastInfo(query) {
  return loader.get(
    '/VideoServer/GetForecastInfo',
    Object.assign({}, query)
  )
}

export function fetchProjectList(query) {
  return loader.get(
    '/VideoServer/GetProjectList',
    Object.assign({}, query)
  )
}

export function fetchVersionInfo(query) {
  return loader.get(
    '/VideoServer/GetVersionInfo',
    Object.assign({}, query)
  )
}

export function fetchGetDataSetList(query) {
  return loader.get(
    '/VideoServer/GetDataSetList',
    Object.assign({}, query)
  )
}

export function fetchGetDataSetInfo(query) {
  return loader.get(
    '/VideoServer/GetDataSetInfo',
    Object.assign({}, query)
  )
}

export function fetchGetCronTaskList(query) {
  return loader.get(
    '/VideoServer/GetCronTaskList',
    Object.assign({}, query)
  )
}

export function CreateCronTask(query) {
  return loader.post('/VideoServer/CreateCronTask',
    Object.assign({}, query)
  )
}

export function DeleteCronTask(query) {
  return loader.post('/VideoServer/DeleteCronTask',
    Object.assign({}, query)
  )
}

export function ChangeCronTaskStatus(query) {
  return loader.post('/VideoServer/ChangeCronTaskStatus',
    Object.assign({}, query)
  )
}

export function fetchTaskLogList(query) {
  return loader.get(
    '/VideoServer/GetTaskList',
    Object.assign({}, query)
  )
}

export function fetchTaskLogInfo(query) {
  return loader.get(
    '/VideoServer/GetTaskLogInfo',
    Object.assign({}, query)
  )
}

export function fetchTaskVideoList(query) {
  return loader.get(
    '/VideoServer/GetTaskVideoList',
    Object.assign({}, query)
  )
}

export function ReCheckVideoLabel(query) {
  return loader.post(
    '/VideoServer/ReCheckVideoLabel',
    Object.assign({}, query)
  )
}

export function fetchTaskResult(query) {
  return loader.get(
    '/VideoServer/GetTaskResult',
    Object.assign({}, query)
  )
}

export function fetchTaskResultList(query) {
  return loader.get(
    '/VideoServer/GetTaskResultList',
    Object.assign({}, query)
  )
}

export function fetchTaskStatus(query) {
  return loader.get(
    '/VideoServer/GetTaskStatus',
    Object.assign({}, query)
  )
}

export function CreateDataSet(query) {
  return loader.post(
    '/VideoServer/CreateDataSet',
    Object.assign({}, query)
  )
}

export function UploadDataSet(query) {
  return loader.postFile(Object.assign({}, query))
}

export function UpdateCronTask(query) {
  return loader.post(
    '/VideoServer/UpdateCronTask',
    Object.assign({}, query)
  )
}

export function fetchTaskVideoResultList(query) {
  return loader.get(
    '/VideoServer/GetTaskVideoResultList',
    Object.assign({}, query)
  )
}

export function DataSetClassAndFrom(query) {
  return loader.get(
    '/VideoServer/GetDataSetClassAndFrom',
    Object.assign({}, query)
  )
}

export function DeleteDataSet(query) {
  return loader.post(
    '/VideoServer/DeleteDataSet',
    Object.assign({}, query)
  )
}
